package ru.spbau.database.group3.parser;

/**
 * Created with IntelliJ IDEA.
 * User: stas
 * Date: 1/27/13
 * Time: 1:19 PM
 */
public abstract class abstractCmd implements Command {
    public abstractCmd(String prefix) {
       this.prefix = prefix;
    }

    @Override
    public boolean isApplicable(String cmd) {
        return cmd.startsWith(prefix);
    }

    private final String prefix;
}
